
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bpmlab.kivulifx.entity;

import javafx.beans.property.SimpleDoubleProperty;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 *
 * @author Dedo
 */
@XmlSeeAlso({RectangleModel.class, CircleModel.class})
public class ShapeModel {

    private SimpleDoubleProperty x = new SimpleDoubleProperty();
    private SimpleDoubleProperty y = new SimpleDoubleProperty();

    public ShapeModel() {
    }

    public ShapeModel(double x, double y) {
        this.x.set(x);
        this.y.set(y);
    }

    public double getX() {
        return x.get();
    }

    public void setX(double x) {
        this.x.set(x);
    }

    public SimpleDoubleProperty xProperty() {
        return x;
    }

    public double getY() {
        return y.get();
    }

    public void setY(double y) {
        this.y.set(y);
    }

    public SimpleDoubleProperty yProperty() {
        return y;
    }

}
